//
//  HDCustomAnnotationView.m
//  HDecoration
//
//  Created by koki on 15/9/29.
//  Copyright (c) 2015年 HDecoration. All rights reserved.
//

#import "HDCustomAnnotationView.h"

@implementation HDCustomAnnotationView

- (id)initWithAnnotation:(id<MKAnnotation>)annotation reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithAnnotation:annotation reuseIdentifier:reuseIdentifier];
    if (self)
    {
        self.backgroundColor = [UIColor clearColor];
        self.frame=CGRectMake(0, 0, 40, 40);
        UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 16, 33)];
        [imageView setImage:[UIImage imageNamed:@"annotation"]];
        self.calloutOffset = CGPointMake(-10, 0);
        self.canShowCallout=YES;
        [self addSubview:imageView];
    }
    
    return self;
}



@end
